/*
 * XML Type:  PresentmentAccount
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PresentmentAccount
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PresentmentAccount(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PresentmentAccountImpl extends net.ofx.types.x2003.x04.impl.AbstractAccountImpl implements net.ofx.types.x2003.x04.PresentmentAccount
{
    
    public PresentmentAccountImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BILLPUB$0 = 
        new javax.xml.namespace.QName("", "BILLPUB");
    private static final javax.xml.namespace.QName BILLERID$2 = 
        new javax.xml.namespace.QName("", "BILLERID");
    private static final javax.xml.namespace.QName BILLERNAME$4 = 
        new javax.xml.namespace.QName("", "BILLERNAME");
    private static final javax.xml.namespace.QName ACCTID$6 = 
        new javax.xml.namespace.QName("", "ACCTID");
    private static final javax.xml.namespace.QName PRESNAMEADDRESS$8 = 
        new javax.xml.namespace.QName("", "PRESNAMEADDRESS");
    private static final javax.xml.namespace.QName USERID$10 = 
        new javax.xml.namespace.QName("", "USERID");
    private static final javax.xml.namespace.QName SPNAME$12 = 
        new javax.xml.namespace.QName("", "SPNAME");
    private static final javax.xml.namespace.QName PAYEEID$14 = 
        new javax.xml.namespace.QName("", "PAYEEID");
    private static final javax.xml.namespace.QName PAYEELSTID$16 = 
        new javax.xml.namespace.QName("", "PAYEELSTID");
    
    
    /**
     * Gets the "BILLPUB" element
     */
    public java.lang.String getBILLPUB()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLPUB$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BILLPUB" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetBILLPUB()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(BILLPUB$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BILLPUB" element
     */
    public void setBILLPUB(java.lang.String billpub)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLPUB$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BILLPUB$0);
            }
            target.setStringValue(billpub);
        }
    }
    
    /**
     * Sets (as xml) the "BILLPUB" element
     */
    public void xsetBILLPUB(net.ofx.types.x2003.x04.GenericNameType billpub)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(BILLPUB$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(BILLPUB$0);
            }
            target.set(billpub);
        }
    }
    
    /**
     * Gets the "BILLERID" element
     */
    public java.lang.String getBILLERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLERID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BILLERID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetBILLERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(BILLERID$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BILLERID" element
     */
    public void setBILLERID(java.lang.String billerid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLERID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BILLERID$2);
            }
            target.setStringValue(billerid);
        }
    }
    
    /**
     * Sets (as xml) the "BILLERID" element
     */
    public void xsetBILLERID(net.ofx.types.x2003.x04.IdType billerid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(BILLERID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(BILLERID$2);
            }
            target.set(billerid);
        }
    }
    
    /**
     * Gets the "BILLERNAME" element
     */
    public java.lang.String getBILLERNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLERNAME$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BILLERNAME" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetBILLERNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(BILLERNAME$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "BILLERNAME" element
     */
    public boolean isSetBILLERNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BILLERNAME$4) != 0;
        }
    }
    
    /**
     * Sets the "BILLERNAME" element
     */
    public void setBILLERNAME(java.lang.String billername)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLERNAME$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BILLERNAME$4);
            }
            target.setStringValue(billername);
        }
    }
    
    /**
     * Sets (as xml) the "BILLERNAME" element
     */
    public void xsetBILLERNAME(net.ofx.types.x2003.x04.GenericNameType billername)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(BILLERNAME$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(BILLERNAME$4);
            }
            target.set(billername);
        }
    }
    
    /**
     * Unsets the "BILLERNAME" element
     */
    public void unsetBILLERNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BILLERNAME$4, 0);
        }
    }
    
    /**
     * Gets the "ACCTID" element
     */
    public java.lang.String getACCTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCTID$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ACCTID" element
     */
    public net.ofx.types.x2003.x04.AccountIdType xgetACCTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AccountIdType target = null;
            target = (net.ofx.types.x2003.x04.AccountIdType)get_store().find_element_user(ACCTID$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "ACCTID" element
     */
    public void setACCTID(java.lang.String acctid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCTID$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCTID$6);
            }
            target.setStringValue(acctid);
        }
    }
    
    /**
     * Sets (as xml) the "ACCTID" element
     */
    public void xsetACCTID(net.ofx.types.x2003.x04.AccountIdType acctid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AccountIdType target = null;
            target = (net.ofx.types.x2003.x04.AccountIdType)get_store().find_element_user(ACCTID$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AccountIdType)get_store().add_element_user(ACCTID$6);
            }
            target.set(acctid);
        }
    }
    
    /**
     * Gets the "PRESNAMEADDRESS" element
     */
    public net.ofx.types.x2003.x04.PresentmentNameAddress getPRESNAMEADDRESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentNameAddress target = null;
            target = (net.ofx.types.x2003.x04.PresentmentNameAddress)get_store().find_element_user(PRESNAMEADDRESS$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PRESNAMEADDRESS" element
     */
    public boolean isSetPRESNAMEADDRESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESNAMEADDRESS$8) != 0;
        }
    }
    
    /**
     * Sets the "PRESNAMEADDRESS" element
     */
    public void setPRESNAMEADDRESS(net.ofx.types.x2003.x04.PresentmentNameAddress presnameaddress)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentNameAddress target = null;
            target = (net.ofx.types.x2003.x04.PresentmentNameAddress)get_store().find_element_user(PRESNAMEADDRESS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PresentmentNameAddress)get_store().add_element_user(PRESNAMEADDRESS$8);
            }
            target.set(presnameaddress);
        }
    }
    
    /**
     * Appends and returns a new empty "PRESNAMEADDRESS" element
     */
    public net.ofx.types.x2003.x04.PresentmentNameAddress addNewPRESNAMEADDRESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentNameAddress target = null;
            target = (net.ofx.types.x2003.x04.PresentmentNameAddress)get_store().add_element_user(PRESNAMEADDRESS$8);
            return target;
        }
    }
    
    /**
     * Unsets the "PRESNAMEADDRESS" element
     */
    public void unsetPRESNAMEADDRESS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESNAMEADDRESS$8, 0);
        }
    }
    
    /**
     * Gets the "USERID" element
     */
    public java.lang.String getUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "USERID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "USERID" element
     */
    public boolean isSetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(USERID$10) != 0;
        }
    }
    
    /**
     * Sets the "USERID" element
     */
    public void setUSERID(java.lang.String userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERID$10);
            }
            target.setStringValue(userid);
        }
    }
    
    /**
     * Sets (as xml) the "USERID" element
     */
    public void xsetUSERID(net.ofx.types.x2003.x04.IdType userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(USERID$10);
            }
            target.set(userid);
        }
    }
    
    /**
     * Unsets the "USERID" element
     */
    public void unsetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(USERID$10, 0);
        }
    }
    
    /**
     * Gets the "SPNAME" element
     */
    public java.lang.String getSPNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SPNAME$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SPNAME" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetSPNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(SPNAME$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "SPNAME" element
     */
    public boolean isSetSPNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SPNAME$12) != 0;
        }
    }
    
    /**
     * Sets the "SPNAME" element
     */
    public void setSPNAME(java.lang.String spname)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SPNAME$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SPNAME$12);
            }
            target.setStringValue(spname);
        }
    }
    
    /**
     * Sets (as xml) the "SPNAME" element
     */
    public void xsetSPNAME(net.ofx.types.x2003.x04.GenericNameType spname)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(SPNAME$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(SPNAME$12);
            }
            target.set(spname);
        }
    }
    
    /**
     * Unsets the "SPNAME" element
     */
    public void unsetSPNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SPNAME$12, 0);
        }
    }
    
    /**
     * Gets the "PAYEEID" element
     */
    public java.lang.String getPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEEID$14, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PAYEEID" element
     */
    public net.ofx.types.x2003.x04.PayeeIdType xgetPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEEID$14, 0);
            return target;
        }
    }
    
    /**
     * True if has "PAYEEID" element
     */
    public boolean isSetPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEEID$14) != 0;
        }
    }
    
    /**
     * Sets the "PAYEEID" element
     */
    public void setPAYEEID(java.lang.String payeeid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEEID$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYEEID$14);
            }
            target.setStringValue(payeeid);
        }
    }
    
    /**
     * Sets (as xml) the "PAYEEID" element
     */
    public void xsetPAYEEID(net.ofx.types.x2003.x04.PayeeIdType payeeid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEEID$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().add_element_user(PAYEEID$14);
            }
            target.set(payeeid);
        }
    }
    
    /**
     * Unsets the "PAYEEID" element
     */
    public void unsetPAYEEID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEEID$14, 0);
        }
    }
    
    /**
     * Gets the "PAYEELSTID" element
     */
    public java.lang.String getPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEELSTID$16, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PAYEELSTID" element
     */
    public net.ofx.types.x2003.x04.PayeeIdType xgetPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEELSTID$16, 0);
            return target;
        }
    }
    
    /**
     * True if has "PAYEELSTID" element
     */
    public boolean isSetPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEELSTID$16) != 0;
        }
    }
    
    /**
     * Sets the "PAYEELSTID" element
     */
    public void setPAYEELSTID(java.lang.String payeelstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEELSTID$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYEELSTID$16);
            }
            target.setStringValue(payeelstid);
        }
    }
    
    /**
     * Sets (as xml) the "PAYEELSTID" element
     */
    public void xsetPAYEELSTID(net.ofx.types.x2003.x04.PayeeIdType payeelstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEELSTID$16, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().add_element_user(PAYEELSTID$16);
            }
            target.set(payeelstid);
        }
    }
    
    /**
     * Unsets the "PAYEELSTID" element
     */
    public void unsetPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEELSTID$16, 0);
        }
    }
}
